package com.xyzm.mytest.function;

import java.util.function.Consumer;

public class ConsumerDemo implements Consumer<String> {

    @Override
    public void accept(String s) {
        System.out.println("Hello "+s +",this is a consumer function!");
    }
}
